home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_s6220.txt < prev    next >
Text File  |  1994-03-01  |  411b  |  11 lines

  1. 10 GOSUB400:IFx=<0 THENp=1:GOTO80
  2. 20 IFn>100 THENz=x:x=((x/n)^(1/3)-(1-2/9/n))/SQR(2/9/n):GOSUB"LIB0:S6210":GOSUB400:p=y:x=z:GOTO80
  3. 30 IFx>400 THENp=0:GOTO80
  4. 40 a=EXP(-x/2):p=a:y=2
  5. 50 IFn MOD 2<>0 THENz=x:x=SQRx:GOSUB"LIB0:S6210":GOSUB400:p=2*y:a=SQR(2/PI)*a/x:x=z:y=1
  6. 60 FORi=y TOn-2 STEP2:a=a*x/i:p=p+a:NEXT
  7. 80 y=p:RETURN
  8. 400 ONERRORGOTO500:RETURN
  9. 500 IFERR=1 THENCLS:ONERRORGOTO0
  10. 510 sr=1:RESUME80
  11.